package hhm.javamode.state;

/**
 * Created by Administrator on 2017/1/23.
 */
public class StopState extends  TaskState {
    @Override
    void start(TaskContext context) {
        System.out.println("任务开始了");
        context.setState(new StartState());

    }

    @Override
    void stop(TaskContext context) {

        System.out.println("任务已经停止了，你还点什么");

    }
}
